package dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import pojo.User;

import java.util.List;

@Repository("userDao")
@Mapper
public interface UserDao {
    public List<User> login(@Param("uid") Integer uid, @Param("upwd") String upwd);
    public int register(User user);
    public List<User> checkName(String uname);
    public List<User> checkTel(String utel);
    public List<User> checkEmail(String uemail);
}
